﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudReader.Server.Core
{
    public class SpinAngle : MultiValueBase
    {
        public override object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            if (values.Length < 2)
            {
                return 0.0d;
            }
            var max = (int)values[0];
            var curr = (int)values[1];
            return curr / max * 360d;
        }
    }
}
